@import "./base.css";

#app {
  max-width: 1280px;
  overflow-x: hidden; /* 隐藏横向滚动条 */
  width: 100vw; /* 强制宽度为视口宽度 */
}

a,
.green {
  text-decoration: none;
  color: hsla(160, 100%, 37%, 1);
  transition: 0.4s;
  padding: 3px;
}

@media (hover: hover) {
  a:hover {
    background-color: hsla(160, 100%, 37%, 0.2);
  }
}

@media (min-width: 1024px) {
  body {
    display: flex;
    place-items: center;
  }

  #app {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 2rem;
  }
}

.notify_block {
  background: none !important;
}

.van-toast__text {
  /* width: 270px;
  height: 66px; */
  box-sizing: border-box;
  /* background: rgba(0,0,0,0.45); */
  border-radius: 6px;
  padding: 16px;
  font-weight: 400;
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.dialog-custom-class .van-dialog__footer {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: 16px;
}
.dialog-custom-class .van-button__text {
  font-weight: 400;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.45);
}

.dialog-custom-class .van-dialog__cancel {
  margin-left: 10px !important;
  background: linear-gradient(90deg, #89a5ff 0%, #6b77ff 100%);
  border-radius: 8px 8px 8px 8px;
  height: 51px;
}
.dialog-custom-class .van-dialog__cancel .van-button__text {
  font-size: 16px;
  color: #ffffff;
}
.dialog-custom-class .van-dialog__confirm {
  border: 0;
}
.dialog-custom-class .van-dialog__message {
  font-size: 18px;
  color: #000000;
}

.bottom_line {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin-top: 36px;
}

.select_checkbox_wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
}
.select_checkbox_wrap .text {
  font-size: 18px;
  color: #000000;
  margin-left: 8px;
}

/* 图片浏览器 */
.van-image-preview__image {
  width: 327px;
  /* height: 327px; */
  border-radius: 12px;
  border: 1px solid #000000;
  overflow: hidden;
}
.van-image-preview__index {
  display: none;
}
/* 覆盖 Vant 默认样式 */
.van-image-preview__close-icon {
  position: absolute;
  top: calc(50% - 156px); /* 距离图片顶部距离 */
  right: 32px; /* 距离图片右侧距离 */
  z-index: 100; /* 确保按钮在图片上方 */
  color: white; /* 图标颜色 */
  font-size: 24px; /* 图标大小 */
  display: none;
}
/* 删除二次确认弹框样式修改 */
.custom-delete-dialog .van-dialog__message {
  font-size: 18px;
  color: #000000;
}
.custom-delete-dialog .van-hairline--top:after {
  display: none;
}
.custom-delete-dialog .van-hairline--left:after {
  display: none;
}
.custom-delete-dialog .van-dialog__footer {
  padding-bottom: 16px;
  padding-right: 22px;
  padding-left: 22px;
}
.custom-delete-dialog .van-button:before {
  width: 128px;
  height: 51px;
}
.custom-delete-dialog .van-dialog__confirm {
  width: 120px !important;
  height: 51px;
  background: linear-gradient(90deg, #ff8999 0%, #ff6b6d 100%);
  border-radius: 8px;
  margin-left: 57px;
}
.custom-delete-dialog .van-button__text {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.45);
}
.custom-delete-dialog .van-dialog__confirm .van-button__text {
  color: #fff;
}

/* 登录页面弹框设置 */
.custom-login-dialog .van-hairline--top:after {
  display: none;
}
.custom-login-dialog .van-dialog__message {
  font-size: 18px;
  color: #000000;
}
.custom-login-dialog .van-dialog__confirm {
  width: 260px;
  height: 51px;
  background: linear-gradient(90deg, #89a5ff 0%, #6b77ff 100%);
  border-radius: 8px;
}
.custom-login-dialog .van-dialog__confirm .van-button__text {
  color: #fff;
  font-size: 16px;
}
.custom-login-dialog .van-dialog__footer {
  padding-bottom: 16px;
  padding-right: 24px;
  padding-left: 24px;
}

/* 弹框样式 */
.custom-ok-dialog {
  padding: 16px;
}
.custom-ok-dialog .van-dialog__message {
  font-size: 18px;
  color: #000000;
}
.custom-ok-dialog .van-button {
  height: 51px;
  background: linear-gradient(90deg, #89a5ff 0%, #6b77ff 100%);
  border-radius: 8px;
}
.custom-ok-dialog .van-button__text {
  font-size: 16px;
  color: #ffffff;
  text-align: center;
}

/* 自定义加载样式 */
.custom-loading {
  /* 整体容器样式 */
  overflow: hidden;
  max-width: 80% !important;
  padding: 12px 20px !important;

  .van-loading__spinner {
    width: 32px;
    height: 32px;
  }

  .van-toast__text {
    white-space: nowrap; /* 强制不换行 */
    overflow: visible; /* 允许文本溢出 */
    display: block; /* 块级显示 */
    margin-top: 8px;
    font-size: 14px;
    color: #fff;
    max-width: none; /* 取消最大宽度限制 */
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
